var app=new Vue({
    el: '#app',
    data() {
        return {
            productNum: 0,
            items:[],
        }
    },
    beforeMount: function () {
        this.$nextTick(function () {
            app.creatList(); //creat list view
        })
    },
    methods: {
        creatList: function () { //初始化list数据，将参赛组的名单数据显示
            Server.getFromCustomer('/searchAllRegisterDataByCustomerId', {openId:"123"}, function(result){
                console.log(result);
                if(result.code === 100){
                    app.items = result.data.data; 
                    app.productNum=2;
                }
            });
        }
    }
});